3 targetProjectFile=pendent
6 export DEFINES="-mmcu=attiny10 -DBOARD=1 -fno-strict-aliasing -Wattributes"
10 $AVRGCC $DEFINES -Wall -O1 -std=gnu99 -o $targetProjectFile.o -c $targetProjectFile.c
11 $AVRGCC $DEFINES -Wl,-Map=$targetProjectFile.map $targetProjectFile.o -o $targetProjectFile.elf
12 avr-objcopy -O ihex $targetProjectFile.elf $targetProjectFile.hex
14 echo "Compilatoin done"